org.eclipse.vtp.framework.webservices.configurations
Class WebServiceConfiguration

java.lang.Object
  extended by org.eclipse.vtp.framework.webservices.configurations.WebServiceConfiguration
All Implemented Interfaces:
IConfiguration, WebServiceConstants

public class WebServiceConfiguration
extends java.lang.Object
implements IConfiguration, WebServiceConstants

A configuration for a web service connection factory.

Author:
Lonnie Pryor

Field Summary
 
Fields inherited from interface org.eclipse.vtp.framework.webservices.configurations.WebServiceConstants
NAME_ENDPOINT, NAME_INPUT, NAME_LOCATOR, NAME_MAPPING, NAME_NAME, NAME_OPERATION, NAME_PORT, NAME_RESULT_CARDINALITY, NAME_RESULT_NAME, NAME_RESULT_TYPE, NAME_TYPE, NAME_VALUE, NAME_WEB_SERVICE, NAMESPACE_URI
 
Constructor Summary
WebServiceConfiguration()
          Creates a new DatabaseConfiguration.
 
Method Summary
 java.lang.String getEndpoint(java.lang.String port)
          Returns the endpoint to connect to.
 java.lang.String getName()
          Returns the name of this configuration.
 java.lang.String[] getPorts()
          Returns the configured ports.
 void load(org.w3c.dom.Element configurationElement)
          Loads the configuration information from the specified XML element.
 void save(org.w3c.dom.Element configurationElement)
          Saves the configuration information into the supplied XML element.
 void setEndpoint(java.lang.String port, java.lang.String endpoint)
          Sets the endpoint to connect to.
 void setName(java.lang.String name)
          Sets the name of this configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebServiceConfiguration

public WebServiceConfiguration()
Creates a new DatabaseConfiguration.

Method Detail

getName

public java.lang.String getName()
Returns the name of this configuration.

Returns:
The name of this configuration.

setName

public void setName(java.lang.String name)
Sets the name of this configuration.

Parameters:
name - The name of this configuration.

getPorts

public java.lang.String[] getPorts()
Returns the configured ports.

Returns:
The configured ports.

getEndpoint

public java.lang.String getEndpoint(java.lang.String port)
Returns the endpoint to connect to.

Parameters:
port - The port to return the endpoint for.
Returns:
The endpoint to connect to.

setEndpoint

public void setEndpoint(java.lang.String port,
                        java.lang.String endpoint)
Sets the endpoint to connect to.

Parameters:
port - The port to set the endpoint for.
endpoint - The endpoint to connect to.

load

public void load(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Loads the configuration information from the specified XML element.

Specified by:
load in interface IConfiguration
Parameters:
configurationElement - The element to load the configuration from.

save

public void save(org.w3c.dom.Element configurationElement)
Description copied from interface: IConfiguration
Saves the configuration information into the supplied XML element.

Specified by:
save in interface IConfiguration
Parameters:
configurationElement - The element to save the configuration to.